package com.photoeditor.demo.model.face;

import android.content.Context;
import android.support.v7.widget.LinearSmoothScroller;

import static android.support.v7.widget.LinearSmoothScroller.SNAP_TO_START;

public class TopSmoothScroller extends LinearSmoothScroller {
    public TopSmoothScroller(Context context) {
        super(context);
    }
    @Override
    protected int getHorizontalSnapPreference() {
        return SNAP_TO_START;
    }
    @Override
    protected int getVerticalSnapPreference() {
        return SNAP_TO_START;  // 将子view与父view顶部对齐
    }
}
